package com.hp.easyBuy.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hp.easyBuy.entity.TOrder;
import com.hp.easyBuy.entity.TOrderDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDao extends BaseMapper<TOrder> {
    //分页条件连表查询订单列表
    public Page<TOrder> page(Page<TOrder> page,@Param(Constants.WRAPPER)QueryWrapper<TOrder> wrapper);

    //订单确认收货
    public boolean update(TOrder order);



    //根据订单id获取订单
    public boolean update(Long id);

    //根据订单id获取订单详情
   public TOrder details(Integer id);
}
